﻿using System;
using System.Collections.Generic;
using System.Text;

namespace WxLib.CustomerService
{
    /// <summary>
    /// 上传结果
    /// </summary>
    public class UoloadMediaResult
    {
        public int errcode { get; set; }

        public string errmsg { get; set; }

        /// <summary>
        /// image
        /// </summary>
        public string type { get; set; }

        /// <summary>
        /// 媒体文件上传后，获取标识
        /// </summary>
        public string media_id { get; set; }

        /// <summary>
        /// 媒体文件上传时间戳
        /// </summary>
        public string created_at { get; set; }

        public bool IsSuccess()
        {
            return errcode == 0 && string.IsNullOrEmpty(errmsg);
        }
    }
}
